#pragma once
#include "shape.h"
#include <math.h>
using namespace std;

class Polygon : public Shape2D
{
private:
    int numSides = 0;
    double sideLength = 0;

public:
    Polygon(int num, double length) : numSides(num), sideLength(length){};
    double perimeter() const;
    double area() const;
};